package com.justgame.project.service.system.service;

import com.justgame.project.cloud.base.entity.CurrentUser;
import com.justgame.project.service.system.entity.SysUserInfo;
import com.justgame.project.service.system.entity.SysUserOperationLog;
import com.justgame.project.service.system.service.basic.BasicSysUserOperationLogService;
import org.springframework.lang.NonNull;

import java.time.Duration;

/**
 *
 * 用户功能操作间隔限制表服务接口层
 *
 * @@tableName sys_user_operation_log
 * @author Zwb
 */
public interface ISysUserOperationLogService extends BasicSysUserOperationLogService {
    /**
     * 记录操作
     * @param userInfo 用户信息
     * @param operation 操作类型
     */
    void doOperation(CurrentUser sysUserInfo, SysUserOperationLog.Operation operation, Duration duration);
}
